Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some tweaks for pulsarmq-connector #4060

Merged
merged 8 commits into from
May 13, 2022
Merged

Conversation

zhangjukai
Copy link
Contributor

  1. Add the com.alibaba.otter.canal.connector.core.spi.CanalMsgConsumer file to the META-INF/canal directory under the pulsarmq-connector project
  2. Introduce pulsar-client-admin for Canal to automatically create multi-partition topics
  3. Add the judgment that roleToken is null
  4. The disconnect method in CanalPulsarMQConsumer removes this.pulsarMQConsumer.unsubscribe();, this code will cause data loss during stop
  5. When getting Pulsar messages, they are all processed as flat messages, because CanalMessageSerializerUtil.deserializer(data) will deserialize exceptions
  6. Use groupId as subscriptName, without the pulsarmq.subscriptName parameter, the entire adapter will be the same subscriber name using pulsarmq.subscriptName

…r file to the META-INF/canal directory under the pulsarmq-connector project

2. Introduce pulsar-client-admin for Canal to automatically create multi-partition topics
3. Add the judgment that roleToken is null
4. The disconnect method in CanalPulsarMQConsumer removes this.pulsarMQConsumer.unsubscribe();, this code will cause data loss during stop
5. When getting Pulsar messages, they are all processed as flat messages, because CanalMessageSerializerUtil.deserializer(data) will deserialize exceptions
6. Use groupId as subscriptName, without the pulsarmq.subscriptName parameter, the entire adapter will be the same subscriber name using pulsarmq.subscriptName
@zhangjukai zhangjukai closed this Feb 28, 2022
@zhangjukai zhangjukai reopened this Feb 28, 2022
@agapple agapple merged commit 25be025 into alibaba:master May 13, 2022
@agapple
Copy link
Member

agapple commented May 13, 2022

tks

@agapple agapple added this to the v1.1.6 milestone May 13, 2022
@tuhaihe
Copy link

tuhaihe commented Aug 1, 2022

Thanks for your work @zhangjukai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants